package com.hyt.it.ogt.ykcj.feign.pt;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.hyt.it.ogt.ykcj.feign.model.Classification;
import com.hyt.it.ogt.ykcj.feign.model.ResultObjEntity;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;

/**
 * description 平台远程调用额类
 *
 * @author yaojian
 * @createTime 2022/02/14
 */
@FeignClient(value = "it-ogt-sq", fallback = PtClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface PtClient {

    /**
     * 查询分类列表
     */
    @RequestMapping(value = "/pt/examination-category/getTreelist", method = RequestMethod.GET)
    ResultObjEntity<Classification> getTreelist();

}
